package com.ruoyi.system.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.system.domain.node;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCfcaMapper;
import com.ruoyi.system.domain.SysCfca;
import com.ruoyi.system.service.ISysCfcaService;

/**
 * 用印申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-09
 */
@Service
public class SysCfcaServiceImpl implements ISysCfcaService 
{
    @Autowired
    private SysCfcaMapper sysCfcaMapper;

    /**
     * 查询用印申请
     * 
     * @param id 用印申请主键
     * @return 用印申请
     */
    @Override
    public SysCfca selectSysCfcaById(String id)
    {
        return sysCfcaMapper.selectSysCfcaById(id);
    }

    /**
     * 查询用印申请列表
     * 
     * @param sysCfca 用印申请
     * @return 用印申请
     */
    @Override
    public List<SysCfca> selectSysCfcaList(SysCfca sysCfca)
    {
        return sysCfcaMapper.selectSysCfcaList(sysCfca);
    }

    @Override
    public List<SysCfca> findqzcfcaBynodeer(SysCfca sysCfca) {
        return sysCfcaMapper.findqzcfcaBynodeer(sysCfca);
    }

    @Override
    public List<node> selectnode(String nodename) {
        return sysCfcaMapper.selectSysCfcanode(nodename);
    }

    /**
     * 新增用印申请
     * 
     * @param sysCfca 用印申请
     * @return 结果
     */
    @Override
    public int insertSysCfca(SysCfca sysCfca)
    {
        return sysCfcaMapper.insertSysCfca(sysCfca);
    }

    /**
     * 修改用印申请
     * 
     * @param sysCfca 用印申请
     * @return 结果
     */
    @Override
    public int updateSysCfca(SysCfca sysCfca)
    {
        return sysCfcaMapper.updateSysCfca(sysCfca);
    }

    /**
     * 批量删除用印申请
     * 
     * @param ids 需要删除的用印申请主键
     * @return 结果
     */
    @Override
    public int deleteSysCfcaByIds(String[] ids)
    {
        return sysCfcaMapper.deleteSysCfcaByIds(ids);
    }

    /**
     * 删除用印申请信息
     * 
     * @param id 用印申请主键
     * @return 结果
     */
    @Override
    public int deleteSysCfcaById(String id)
    {
        return sysCfcaMapper.deleteSysCfcaById(id);
    }
}
